package tracker;

/****************************************************************************************************************************
* TrackerFastrak describes the default configuration we use for the Polhemus Fastrak tracking Device						*
*																															*
* Written by Ross Smith - Jan 2005																							*
*																															*
****************************************************************************************************************************/

public class TrackerFastrak extends TrackerPolhemus{
	
	private String name = "Fastrak";
	private int numSensors = 3;
	private int messageLength = 48;		/*Each record from the tracker is 48 bytes long*/
	private int maxUpdateHz = 120;
	
	public TrackerFastrak(){
		
	}
	
	public String getTrackerType(){
		return name;
	}
	
	public int getNumSensors(){
		return this.numSensors;
	}
	
	public int getMessageLength(){
		return this.messageLength;
	}
	
	public String getInitilisationString(){
		return "\rO1,4,2,1\rO2,4,2,1\rO3,4,2,1\rH1,0,0,-1\rH2,0,0,-1\rH3,0,0,-1\rC";
	}
	
	public int getPositionOffset() {
		return 3;
    }

	/*Maximum update speed, should be divided by the number of sensors attached to get each sensors FPS*/
	public int getMaxUpdateSpeedInHz(){
		return this.maxUpdateHz;
	}
	
	public String getFirmwareIdent(){
		return "S3F2";
	}
}
